import request from '@/utils/request'

// 获取陪爬员列表（支持查询参数）
export function listCoaches(params) {
  return request({
    url: '/climber/list',
    method: 'get',
    params
  })
}

// 关键字搜索陪爬员（语法糖）
export function searchCoaches(keyword, extraParams = {}) {
  return listCoaches({ keyword, ...extraParams })
}

// 获取陪爬员详情
export function getCoachDetail(coachId) {
  return request({
    url: `/climber/${coachId}`,
    method: 'get'
  })
}


